Tootsville::Parse-Polygon

Function

Parse-Polygon names a function, with lambda list (POLYGON-STRING REFERENCE):

Parses the POLYGON-STRING near REFERENCE into a list of GAME-POINTs

The POLYGON-STRING is a sequence of x,z or x,y,z points joined with ~, making up the points at the edge of the polygon.

When y coördinates are omitted, they default to 0.

Coördinate values can be in any format understood by ORG.MAPCAR.PARSE-NUMBER::PARSE-NUMBER (not in this manual)

Examples

-1,1~1,1~1,-1~-1,-1

-1,0,1~1,0,1~1,0,-1~-1,0,-1

#x-40,#x40~#x40,#x40~#x40,#x-40~#x-40,#x-40

File

Defined in file src/infinity/legacy-ops.lisp.